/*
 * Copyright 2010. 
 * 
 * This document may not be reproduced, distributed or used 
 * in any manner whatsoever without the expressed written 
 * permission of xrkol Corp. 
 * 
 * $Rev: Rev $
 * $Author: Author $
 * $LastChangedDate: LastChangedDate $
 *
 */

package com.xrkol.sharelib.util;

import com.weixin.sdk.AppSpecific;
import com.weixin.sdk.Client;
import com.weixin.sdk.FileBasedAccessTokenStorager;


public class AppClient {

    public static Client client(){
        String appID = "wx776b871a3d764eac";
        String appSecret = "qn8TrR-Ioa3Xm7IrnCciofgaTpaYGLAXQQiUMhFWC0ABNlBYQ2dHP_OApK0Cnl0T";
        
        Client client = new Client(new AppSpecific(appID, appSecret, null), new FileBasedAccessTokenStorager("jz_accesstoken"));
        return client;
    }
    
    public static Client jsClient(){
        String appID = "wx981d0202130ed8e7";
        String appSecret = "91175b8f0d06cb52d5f1586dd78d0006";
        
        Client client = new Client(new AppSpecific(appID, appSecret, null), new FileBasedAccessTokenStorager("js_accesstoken"));
        return client;
    }
    
}
